import 'package:bxultimate/data/request/intell_request.dart';
import 'package:bxultimate/domain/intell/IntellHistoryDto.dart';
import 'package:get/get.dart';

import 'state.dart';

class IntelHistoryController extends GetxController {
  final IntelHistoryState state = IntelHistoryState();

  @override
  void onInit(){
    super.onInit();

    onRefresh();
  }


  Future<void> onRefresh() async {
    List<IntellHistoryDto> intellHistory = await IntellRequest.getMyIntell();
    state.intellHistory = intellHistory;
  }
}
